package person.zhaiming.commons;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @program: zhaimingSpringCloud
 * @description:
 * @author: zhaiming
 * @create: 2020-11-30 17:42
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommonResult<T> {

    private Integer code;
    private String message;
    private T t;

    /*public CommonResult(Integer code, String message){
        this.code = code;
        this.message = message;
        this.t = null;
    }

    public CommonResult(Integer code, String message, T t){
        this.code = code;
        this.message = message;
        this.t = t;
    }*/
    public CommonResult(Integer code, String message){
        this(code, message, null);
    }
}
